package com.gopay.bis.service.bank.impl;

import javax.annotation.Resource;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import com.gopay.bis.manager.bank.BisEbankB2BConfigManager;
import com.gopay.common.Result;
import com.gopay.common.domain.bis.BisEbankB2BConfig;
import com.gopay.remote.bank.BisB2bConfigRemoteService;
/**
 * BISB2B银行特殊处理对外接口
 * 
 * @BisEbankB2BConfigServiceImpl.java
 * @author lilili
 */
@Service("bisEbankB2bConfigService")
public class BisEbankB2BConfigServiceImpl implements BisB2bConfigRemoteService {
	 private static Logger logger = LoggerFactory.getLogger(BisEbankB2BConfigServiceImpl.class);
	
	 @Resource(name = "bisEbankB2bConfigManager")
	 private BisEbankB2BConfigManager bisEbankB2bConfigManager;
	 
	@Override
	public Result findBisEbankB2BConfigByBank(String bank) {
		logger.error("BisEbankB2BConfigServiceImpl 银行码：" +bank);
		Result result = new Result();
		BisEbankB2BConfig ebankB2bConfig = bisEbankB2bConfigManager.findBisEbankB2BConfigByBank(bank);
		result.setSuccess(true);
		result.setDefaultModel(ebankB2bConfig);
		return result;
	}


}
